This interferes with scrolling through the results using the arrow keys.The user would first
have to defocus the text box by clicking outside it or pressing Tab.
Bug: T78637
Change-Id: Ic88e70c8e2308797b39c707984d77405369ae46c
and MovePage::checkPermissions().
* The Special:WhatLinksHere page linked from 'Number of redirects to this page'
on action=info about a file page does not list file links anymore.
+* (T78637) Search bar is not autofocused unless it is empty so that proper scrolling using arrow keys is possible.
=== Action API changes in 1.25 ===
* (T67403) XML tag highlighting is now only performed for formats
$out .= Html::input( 'search', $term, 'search', array(
'id' => $this->profile === 'advanced' ? 'powerSearchText' : 'searchText',
'size' => '50',
- 'autofocus',
+ 'autofocus' => trim( $term ) === '',
'class' => 'mw-ui-input mw-ui-input-inline',
) ) . "\n";
$out .= Html::hidden( 'fulltext', 'Search' ) . "\n";